//
//  AppDelegate+StaticMethod.m
//  HomeworkAssistant
//
//  Created by mal on 15/11/10.
//  Copyright © 2015年 mal. All rights reserved.
//

#import "AppDelegate+StaticMethod.h"

//static NSString *SERVER_ADDR = @"http://demo.ekey-tech.net/jcxgov";
//static NSString *SERVER_ADDR = @"http://223.99.168.179:8088/jcxgov";
static NSString *SERVER_ADDR = @"http://124.133.20.226:8088/jcxgov";
//static NSString *SERVER_ADDR = @"http://218.201.160.42:8090/jcxgov";

static NSString *USERID = @"";
static NSString *USER_NAME = @"";
static NSString *USER_TRUE_NAME = @"";
static NSString *USER_DEPARTMENT_ID = @"";
static NSString *VIEW_BG_IMAGE = @"";
static NSInteger FONT_SIZE = 14.f;

int const SMALL_FONT_SIZE = 14;
int const MIDDLE_FONT_SIZE = 18;
int const BIG_FONT_SIZE = 22;

@implementation AppDelegate (StaticMethod)
/**
 *  根后台请求路径
 *
 *  @return <#return value description#>
 */
+ (NSString*)getServerAddr
{
    return SERVER_ADDR;
}
+ (void)setServerAddr:(NSString *)serverAddr
{
    SERVER_ADDR = serverAddr;
}
/**
 *  获取用户的id
 *
 *  @param userId <#userId description#>
 */
+ (void)setUserId:(NSString *)userId
{
    USERID = userId;
}
+ (NSString*)getUserId
{
    return USERID;
}
/**
 *  获取当前用户的真实姓名
 *
 *  @param userTrueName <#userTrueName description#>
 */
+ (void)setUserTrueName:(NSString *)userTrueName
{
    USER_TRUE_NAME = userTrueName;
}
+ (NSString*)getUserTrueName
{
    return USER_TRUE_NAME;
}
/**
 *  获取当前用户名
 *
 *  @param userName <#userName description#>
 */
+ (void)setUserName:(NSString *)userName
{
    USER_NAME = userName;
}
+ (NSString*)getUserName
{
    return USER_NAME;
}
+ (void)setUserDepartmentId:(NSString *)departmentId
{
    USER_DEPARTMENT_ID = departmentId;
}
+ (NSString*)getUserDepartmentId
{
    return USER_DEPARTMENT_ID;
}
/**
 *  主题背景
 *
 *  @return <#return value description#>
 */
+ (NSString*)getViewBgImg
{
    return VIEW_BG_IMAGE;
}

+ (void)setViewBgImg:(NSString *)bgImg
{
    VIEW_BG_IMAGE = bgImg;
}
/**
 *  全局正文字体大小
 *
 *  @return <#return value description#>
 */
+ (NSInteger)getFontSize
{
    return FONT_SIZE;
}
+ (void)setFontSize:(int)size
{
    FONT_SIZE = size;
}

@end
